﻿@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script src="~/Content/js/dialog/dialog.js"></script>
<script>
    var keyValue = $.request("keyValue");

    $(function () {
        if (!!keyValue) {
            $.ajax({
                url: "/Comment/GetFormJson",
                data: { keyValue: keyValue },
                dataType: "json",
                async: false,
                success: function (data) {
                    $("#form1").formSerialize(data);
                }
            });
        }
    });
</script>
<form id="form1">
    <div style="margin-top: 10px; margin-left: 10px; margin-right: 10px;">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#">基本信息</a></li>
        </ul>
        <div style="padding-top: 20px; margin-right: 30px;">
            <table class="form">
                <tr>
                    <th class="formTitle">用户手机号</th>
                    <td class="formValue">
                        <input id="UserTel" name="UserTel" type="text" class="form-control" maxlength="20" readonly="readonly" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">评论时间</th>
                    <td class="formValue">
                        <input id="CommentDate" name="CommentDate" type="text" class="form-control" maxlength="20" readonly="readonly" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">星级</th>
                    <td class="formValue">
                        <input id="Star" name="Star" type="text" maxlength="20" class="form-control" readonly="readonly"/>
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">评论详情</th>
                    <td class="formValue">
                        <textarea id="Content" name="Content" class="form-control" style="height: 80px;" maxlength="100" readonly="readonly"></textarea>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</form>
